package com.boot.security.mapper;

import com.boot.persistence.mapper.IMapper;
import com.boot.security.model.po.AccessResource;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description 权限-资源操作类
 * @date 2020/2/17 20:28
 **/
@Mapper
@Repository
public interface AccessResourceMapper extends IMapper<AccessResource> {
    /**
     * @author 霜寒 <1621856595@qq.com>
     * @description 查找拥有集合中所有权限的权限ID
     * @date 2021/3/17 19:58
     **/
    List<Long> selectResourceIdByAccessIds(List<Long> list);
}
